# -*- coding: utf-8 -*-
"""
@author   : Wu Jiang Bin
@gitee   : https://gitee.com/wjbhydj
@software : PyCharm2021 
@file     : task1.py
@create   : 2022/8/27 11:28
"""

from celery.utils.log import get_task_logger

from proj_celery.celery import app


logger = get_task_logger(__name__)

@app.task
def add(x, y):
    logger.info('x + y')
    return x + y

# 使用队列
# add.apply_async((1, 2), queue='blog_queue')